The Accordion Pane Component > FAccordionPane.getLength()

 

FAccordionPane.getLength()

Availability

Flash Player 6.

Usage

myAccordion_acp.getLength ()

Parameters

none

Returns

Returns the number of sections within the component.

Description

Returns the number of sections within the component.

Example

The following code adds four sections to the component, and then traces out the length.

	var sections = ["Section 1","Section 2","Section 3","Section 4"];
	myAccordionPane_acp.setDataProvider(sections);

	var len = myAccordionPane_acp.getLength();
	trace("Length: "+len); //traces "Length: 4"